package com.xcc.core.netty.coder;

import java.util.List;

import com.alibaba.fastjson.JSONObject;

import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToMessageDecoder;

public class ExchangeDncode extends MessageToMessageDecoder<Object>{

    @Override
    protected void decode(ChannelHandlerContext ctx, 
                          Object msg, List<Object> out)
        throws Exception {
        if(msg instanceof JSONObject) {
            JSONObject    userInfo=(JSONObject)msg;
            String id=userInfo.getString("sendInfo");
            
        }
    }

}
